import Vue from 'vue'
import Vuex from 'vuex'
import cacheModule from './modules/cache'
import user from './modules/user';
import permission from './modules/permission';
import getters from './getters';

Vue.use(Vuex)

export default new Vuex.Store({
  modules: {
    'cache': cacheModule,
    user,
    permission
  },
  state: {
    isRenderTab: true
  },
  mutations: {
    setIsRenderTab (state, data) {
      state.isRenderTab = data
    }
  },
  actions: {},
  getters
})